<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,user-scalable=no" />
		<title>横竖屏切换</title>
	</head>
	<body>
		<script>
			window.addEventListener("orientationchange",function(e){
				//alert("横竖屏切换");
			});
			//window.orientation
			//横屏90 -90
			//竖屏 0 180
		</script>
	</body>
</html>
